<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: D:/doxy/PublicAPI/ATGeometrySet/XVec2d.h 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_52a01df1794e5beec01860bdd05aea48.html">PublicAPI</a></li><li class="navelem"><a class="el" href="../../dir_3ae1ea863de6943fe2c5c18439480f66.html">ATGeometrySet</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">XVec2d.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span>BEGIN_ATEC_NAMESPACE</div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="../../d5/d9a/struct_x_vec2d.html">   11</a></span><span class="keyword">struct </span>ATGEOSET_EXPORT <a class="code hl_class" href="../../d5/d9a/struct_x_vec2d.html">XVec2d</a> : <span class="keyword">public</span> <a class="code hl_struct" href="../../d4/d00/struct_x_point2d.html">XPoint2d</a></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span>{</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="../../d5/d9a/struct_x_vec2d.html#a9485b707586fb43f7b839c879dbc8a22">   25</a></span>    <span class="keyword">static</span> <a class="code hl_class" href="../../d5/d9a/struct_x_vec2d.html">XVec2d</a> <a class="code hl_function" href="../../d5/d9a/struct_x_vec2d.html#a9485b707586fb43f7b839c879dbc8a22">From</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="../../d5/d9a/struct_x_vec2d.html#ac2b762d19ca09f174929cf39cc0d9d32">   38</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/d9a/struct_x_vec2d.html#ac2b762d19ca09f174929cf39cc0d9d32">Init</a>(<span class="keywordtype">double</span> ax, <span class="keywordtype">double</span> ay);</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="../../d5/d9a/struct_x_vec2d.html#ab0c38cf62f0113e30013b94f3bcb6123">   50</a></span>    <span class="keyword">static</span> <a class="code hl_class" href="../../d5/d9a/struct_x_vec2d.html">XVec2d</a> <a class="code hl_function" href="../../d5/d9a/struct_x_vec2d.html#ab0c38cf62f0113e30013b94f3bcb6123">From</a>(XPoint2dCR point);</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="../../d5/d9a/struct_x_vec2d.html#a2d57b664890aa3fb9ebc7b6f6df98c00">   62</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/d9a/struct_x_vec2d.html#a2d57b664890aa3fb9ebc7b6f6df98c00">Init</a>(XPoint2dCR point);</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="../../d5/d9a/struct_x_vec2d.html#a8e7b9fc1b155c83e3a937a8bf1cabbba">   74</a></span>    <span class="keywordtype">double</span> <a class="code hl_function" href="../../d5/d9a/struct_x_vec2d.html#a8e7b9fc1b155c83e3a937a8bf1cabbba">Normalize</a>(XVec2dCR vector);</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="../../d5/d9a/struct_x_vec2d.html#a4afc00a84ed2959d34a345041c6bd067">   85</a></span>    <span class="keywordtype">double</span> <a class="code hl_function" href="../../d5/d9a/struct_x_vec2d.html#a4afc00a84ed2959d34a345041c6bd067">Normalize</a>();</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="../../d5/d9a/struct_x_vec2d.html#a68f707da325ddb98d88e801aa80676d9">   97</a></span>    <span class="keywordtype">double</span> <a class="code hl_function" href="../../d5/d9a/struct_x_vec2d.html#a68f707da325ddb98d88e801aa80676d9">AngleTo</a>(XVec2dCR vector2) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>};</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>END_ATEC_NAMESPACE</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span> </div>
<div class="ttc" id="astruct_x_point2d_html"><div class="ttname"><a href="../../d4/d00/struct_x_point2d.html">XPoint2d</a></div><div class="ttdoc">2D平面点类</div><div class="ttdef"><b>Definition:</b> XPoint2d.h:12</div></div>
<div class="ttc" id="astruct_x_vec2d_html"><div class="ttname"><a href="../../d5/d9a/struct_x_vec2d.html">XVec2d</a></div><div class="ttdoc">2维向量</div><div class="ttdef"><b>Definition:</b> XVec2d.h:12</div></div>
<div class="ttc" id="astruct_x_vec2d_html_a2d57b664890aa3fb9ebc7b6f6df98c00"><div class="ttname"><a href="../../d5/d9a/struct_x_vec2d.html#a2d57b664890aa3fb9ebc7b6f6df98c00">XVec2d::Init</a></div><div class="ttdeci">void Init(XPoint2dCR point)</div><div class="ttdoc">初始化数据</div></div>
<div class="ttc" id="astruct_x_vec2d_html_a4afc00a84ed2959d34a345041c6bd067"><div class="ttname"><a href="../../d5/d9a/struct_x_vec2d.html#a4afc00a84ed2959d34a345041c6bd067">XVec2d::Normalize</a></div><div class="ttdeci">double Normalize()</div><div class="ttdoc">单位化</div></div>
<div class="ttc" id="astruct_x_vec2d_html_a68f707da325ddb98d88e801aa80676d9"><div class="ttname"><a href="../../d5/d9a/struct_x_vec2d.html#a68f707da325ddb98d88e801aa80676d9">XVec2d::AngleTo</a></div><div class="ttdeci">double AngleTo(XVec2dCR vector2) const</div><div class="ttdoc">向量角</div></div>
<div class="ttc" id="astruct_x_vec2d_html_a8e7b9fc1b155c83e3a937a8bf1cabbba"><div class="ttname"><a href="../../d5/d9a/struct_x_vec2d.html#a8e7b9fc1b155c83e3a937a8bf1cabbba">XVec2d::Normalize</a></div><div class="ttdeci">double Normalize(XVec2dCR vector)</div><div class="ttdoc">向量单位化</div></div>
<div class="ttc" id="astruct_x_vec2d_html_a9485b707586fb43f7b839c879dbc8a22"><div class="ttname"><a href="../../d5/d9a/struct_x_vec2d.html#a9485b707586fb43f7b839c879dbc8a22">XVec2d::From</a></div><div class="ttdeci">static XVec2d From(double x, double y)</div><div class="ttdoc">创建函数</div></div>
<div class="ttc" id="astruct_x_vec2d_html_ab0c38cf62f0113e30013b94f3bcb6123"><div class="ttname"><a href="../../d5/d9a/struct_x_vec2d.html#ab0c38cf62f0113e30013b94f3bcb6123">XVec2d::From</a></div><div class="ttdeci">static XVec2d From(XPoint2dCR point)</div><div class="ttdoc">创建函数</div></div>
<div class="ttc" id="astruct_x_vec2d_html_ac2b762d19ca09f174929cf39cc0d9d32"><div class="ttname"><a href="../../d5/d9a/struct_x_vec2d.html#ac2b762d19ca09f174929cf39cc0d9d32">XVec2d::Init</a></div><div class="ttdeci">void Init(double ax, double ay)</div><div class="ttdoc">初始化数据</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
